package com.dwd.pet.service;

import com.dwd.basic.service.IBaseService;
import com.dwd.pet.pojo.Pet;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * @Description: TODO
 * @Author 汶狄
 * @Date 2021/1/24 19:55
 * @Version 1.0
 */
public interface IPetService extends IBaseService<Pet> {
    /**
     *存储pet和petdetail
     * @param pet
     * @param httpServletRequest
     */
    void savePet(Pet pet, HttpServletRequest httpServletRequest);

    /**
     * 批量上架
     * @param pets
     */
    void batchUp(List<Pet> pets);

    /**
     * 批量下架
     * @param pets
     */
    void batchDown(List<Pet> pets);

    void addOrUpdatePet(Pet pet);
}
